<!DOCTYPE html>
<html lang="zh-cn">
	<head>
		<meta charset="utf-8" />
		<title>国内IP</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<link rel="shortcut icon " type="images/x-icon" href="https://www.sw-x.cn/favicon.ico">
		<link href="https://www.sw-x.cn/assets/css/bootstrap.min.css" id="bootstrap-stylesheet" rel="stylesheet" type="text/css" />
		<link href="https://www.sw-x.cn/assets/css/icon.css" rel="stylesheet" type="text/css" />
		<link href="https://www.sw-x.cn/assets/css/icons.min.css" rel="stylesheet" type="text/css" />
		<link href="https://www.sw-x.cn/assets/iconfont/iconfont.css" rel="stylesheet" type="text/css" />
		<link href="https://www.sw-x.cn/assets/libs/datatables/dataTables.bootstrap4.css" rel="stylesheet" type="text/css" />
		<link href="https://www.sw-x.cn/assets/libs/datatables/responsive.bootstrap4.css" rel="stylesheet" type="text/css" />
		<link href="https://www.sw-x.cn/assets/css/app.min.css" rel="stylesheet" type="text/css" />
		<link href="https://www.sw-x.cn/assets/css/style.css" rel="stylesheet" type="text/css" />
	</head>
	<body data-sidebar="dark">
		<div id="wrapper">
			<!-- 頂部 -->
			<div class="navbar-custom">
				<ul class="list-unstyled topnav-menu topnav-menu-left mb-0">
					<li>
						<h4 class="page-title-main"> 
							国内IP 
							<a href="/abroad.html" class="btn btn-primary waves-effect waves-light btn-sm" style="color:#fff">国外IP</a>
						</h4>
					</li>
				</ul>

				<div class="card-box">
					<table class="table table-bordered dt-responsive nowrap">
						<thead>
							<tr>
								<th>待检测IP</th>
								<th>可用IP</th>
								<th>最新更新时间</th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td>{$no}</td>
								<td>{$yes}</td>
								<td>{$update_time}</td>
							</tr>
						</tbody>
					</table>
				</div>

				<div class="card-box">
					<table id="datatable" class="table table-bordered dt-responsive nowrap">
						<thead>
							<tr>
								<th>IP</th>
								<th>端口</th>
								<th>协议</th>
								<th>速度</th>
								<th>成功次数</th>
								<th>失败次数</th>
								<th>更新时间</th>
							</tr>
						</thead>
						<tbody>
							{foreach $list as $v}
							<tr>
								<td>{$v.ip}</td>
								<td>{$v.port}</td>
								<td>{if ($v.is_ssl==1)}<font color="red">HTTPS</font>{else /}HTTP{/if}</td>
								<td>{$v.response_time} 秒</td>
								<td>{$v.success_num}</td>
								<td>{$v.error_num}</td>
								<td>{$v.update_time|formatTime}</td>
							</tr>
							{/foreach}
						</tbody>
					</table>
				</div>
			
	    </div>
		
	</body>
</html>